package gms.entities.um;

import java.util.HashSet;
import java.util.Set;

public class Role {
	private Integer roleId;
	private String roleName;
	private Set<RolePermission> rps = new HashSet<>();

	public Role() {
		super();
	}
	
	
	public Role(String roleName) {
		super();
		this.roleName = roleName;
	}


	public Role(Integer roleId) {
		super();
		this.roleId = roleId;
	}


	@Override
	public String toString() {
		return "Role [roleId=" + roleId + ", roleName=" + roleName + ", rps="
				+ rps + "]";
	}


	public Set<RolePermission> getRps() {
		return rps;
	}

	public void setRps(Set<RolePermission> rps) {
		this.rps = rps;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

}
